#ifndef PERSON_H
#define PERSON_H
#include <QFile>
#include <QTextStream>
#include <QString>

class person
{
public:
    person();
    person(const QString name);
    virtual ~person(){}
    virtual QString queryName(QString name) const;
    virtual QString getPrice(QString name) const;
    virtual QStringList queryAll();
    virtual QStringList queryPrice(double price1,double price2);

    const QString name;

    virtual QStringList queryPrice(int price1=10,int price2=90) const;//函数重载
    virtual QString queryPopular() const=0;
};

#endif // PERSON_H
